package com.it.service.impl;

import com.it.mapper.BooksMapper;
import com.it.pojo.Books;
import com.it.service.BooksService;
import com.it.utils.ThreadLocalUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BooksServiceImpl implements BooksService {

    @Autowired
    private BooksMapper booksMapper;


    @Override
    public List<Books> list() {
        return booksMapper.list();
    }

    @Override
    public void update(Books books) {
        booksMapper.update(books);
    }

    @Override
    public void add(Books books) {
        booksMapper.add(books);
    }

    @Override
    public void delete(Integer id) {
        booksMapper.delete(id);
    }
}
